package com.xh.sso.server.authentiation.oauth2.support.config;

import com.xh.security.core.authentiation.oauth2.support.config.AuthSource;

/**
 *
 */
public enum AuthSsoSource implements AuthSource {
    /**
     * 系统内部SSO
     */
    SSO {
        @Override
        public String authorize() {
            return "http://127.0.0.1:9999/auth/oauth/authorize";
        }

        @Override
        public String accessToken() {
            return "http://127.0.0.1:9999/auth/oauth/token";
        }

        @Override
        public String userInfo() {
            return "https://api.github.com/user";
        }
    }

}
